import pandas as pd
import numpy as np
import plotly_express as px

gapminder = px.data.gapminder()

Switzerland  = gapminder[gapminder["country"] == "Switzerland"]

px.bar(Switzerland,
        x="year",  # 横坐标
        y="pop",  # 纵坐标
        color="pop")  # 颜色取值
